import type { RouteRecordRaw } from 'vue-router';

import { VBEN_LOGO_URL } from '@vben/constants';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: VBEN_LOGO_URL,
      order: 5,
      title: '库存',
    },
    name: 'Stock',
    path: '/stock',
    children: [
      {
        name: 'stockQuery',
        path: '/stock/query',
        component: () => import('#/views/stock/query/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '库存查询',
        },
      },
      {
        name: 'stockInventory',
        path: '/stock/inventory',
        component: () => import('#/views/stock/inventory/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '盘点',
        },
      },
      {
        name: 'stockInventoryList',
        path: '/stock/inventoryList',
        component: () => import('#/views/stock/inventoryList/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '盘点列表',
        },
      },
      {
        name: 'stockInventoryAudit',
        path: '/stock/inventoryAudit',
        component: () => import('#/views/stock/inventoryAudit/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '盘点审核',
        },
      },
      {
        name: 'stockDifference',
        path: '/stock/difference',
        component: () => import('#/views/stock/difference/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '差异调整记录',
        },
      },
    ],
  },
];

export default routes;
